<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
    <style>
        body {
            overflow: hidden;
        }

        img {
            vertical-align: middle;
        }


        .focus {
            position: relative;
            width: 721px;
            height: 455px;
            margin: 100px auto;
            overflow: hidden;
        }

        .arrow_l,
        .arrow_r {
            display: none;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 25px;
            height: 40px;
            background: rgba(0, 0, 0, .3);
            font-size: 18px;
            line-height: 40px;
            text-align: center;
            z-index: 1;
            text-decoration: none;
            color: #fff;
        }


        a[class^="arrow"]:hover {
            color: red;
        }

        .arrow_l {
            left: 0;
        }

        .arrow_r {
            right: 0;
        }

        ul {
            position: absolute;
            top: 0px;
            left: 0px;
            margin: 0;
            padding: 0;
            width: 600%;
            list-style: none;
        }

        ul li {
            float: left;
        }

        .circle {
            position: absolute;
            left: 50px;
            bottom: 10px;
            z-index: 1;
            margin: 0;
            padding: 0;
        }

        .circle li {
            float: left;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 1px solid #fff;
            list-style: none;
            margin: 0 3px;
        }

        .current {
            background-color: #fff;
        }
    </style>
    <script src="./js/animate.js"></script>
    <script src="./js/index.js"></script>
</head>

<body>
    <!-- 1.鼠标经过轮播图，左右按钮显示，离开左右按钮隐藏。
    2.点击右侧按钮图片往左侧播放一张，以此类推，左侧按钮同理。
    3.播放图片的同时线面的小圆圈模块跟着一块播放
    4.点击小圆圈可以播放相应的图片
    5.鼠标不经过轮播图，图片会自动播放
    6.鼠标经过轮播图自动停止播放 -->
    <div class="main">
        <div class="focus">
            <!-- 左侧按钮 -->
            <a href="javascript:;" class="arrow_l">
                &lt;
            </a>
            <!-- 右侧按钮 -->
            <a href="javascript:;" class="arrow_r">
                &gt;
            </a>
            <!-- 轮播图 -->
            <ul>
                <li>
                    <a href="javascript:;">
                        <img src="./upload/focus.jpg" alt="">
                    </a>
                </li>
                <li>
                    <a href="javascript:;">
                        <img src="./upload/focus1.jpg" alt="">
                    </a>
                </li>
                <li>
                    <a href="javascript:;">
                        <img src="./upload/focus2.jpg" alt="">
                    </a>
                </li>
                <li>
                    <a href="javascript:;">
                        <img src="./upload/focus3.jpg" alt="">
                    </a>
                </li>
            </ul>
            <ol class="circle">
            </ol>
        </div>
    </div>
</body>

</html>